package com.talkology.pilot.database.dao;

import com.talkology.pilot.database.model.TeacherInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeacherInfoMapper {
    int deleteByPrimaryKey(@Param(value="index") Long index);

    int insert(TeacherInfo record);

    int insertSelective(TeacherInfo record);

    TeacherInfo selectByPrimaryKey(@Param(value="index") Long index);

    int updateByPrimaryKeySelective(TeacherInfo record);

    int updateByPrimaryKey(TeacherInfo record);

    List<TeacherInfo> selectByType(@Param(value="type") String type, @Param(value="pronounce") Byte pronounce);

    TeacherInfo selectByName(String name);
}